home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / bprof-1.1 / bprof-1 / bprof / bmonout.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-31  |  618 b   |  23 lines

  1. /* -*- c++ -*-
  2.    Describes a file with bmon output */
  3.  
  4. #pragma interface
  5.  
  6. class bmonout {
  7.     unsigned int *count;    // Array of counter values
  8.     unsigned int lowpc, highpc;    // Low and high values of pc in count[]
  9.     static const char *nowname;
  10.     static void newhandler(void);
  11.     time_t _mtime;
  12. public:
  13.     bmonout(const char * = "bmon.out");
  14.     ~bmonout(void);
  15.  
  16.     /* Index is the program counter, returns the number of ticks at
  17.        that program counter */
  18.     unsigned int operator[](unsigned int) const;
  19.  
  20.     /* Modification time of the bmonout file */
  21.     time_t mtime (void) const { return _mtime; }
  22. };
  23.